<?
include_once("includes/common_public_inc.php");
$sql="select ad_title,ad_description,filename from $ads_tbl,$pic_tbl where ad_id=pic_ad_id AND id=" . getParamInt("id","");
$r=q($sql);
$ro=mysql_fetch_array($r);
$lTitle=$ro["ad_title"];
$lDescription=$ro["ad_description"];
$lFilename=$ro["filename"];


$lFilename=eregi_replace("_tmb1","",$lFilename);
$lFilename=eregi_replace("_tmb2","",$lFilename);
if ($set_image_program==0)
	$lManSize=getManualSize("large");
$tplList=new TplLoad;
$tplList->assign("filename",$lFilename);
$tplList->assign("title",$lTitle);
$tplList->assign("mansize",$lManSize);
$tplList->display("largepicture.tpl");	
?>
